//
//  NSString+ThreeDES.h
//  CPICApp
//
//  Created by sinosoft on 13-4-21.
//  Copyright (c) 2013年 lizhiwei. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <CommonCrypto/CommonDigest.h>
#import <CommonCrypto/CommonCryptor.h>
#import <Security/Security.h>

@interface NSString (ThreeDES)

//+(NSString*)TripleDES:(NSString*)plainText encryptOrDecrypt:(CCOperation)encryptOrDecrypt;
//+(NSString*)TripleDESEncrypt:(NSString*)EncryptPlainText;//加密
//+(NSString*)TripleDESDecrypt:(NSString*)DecryptPlainText;//加密

// 加密方法
+ (NSString*)encrypt:(NSString*)plainText;

// 解密方法
+ (NSString*)decrypt:(NSString*)encryptText;
@end
